<%--
  Created by IntelliJ IDEA.
  User: Faroe
  Date: 17/5/11
  Time: 下午2:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path;
%><html>
<head>
    <meta charset="UTF-8">
    <title>删除商品</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
</head>


<body class="skin-blue" onload="searchForm.submit();">



<!-- getHeader -->
<s:action name="getHeader" namespace="/privilege" executeResult="true"/>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->

    <!-- getMenus -->
    <s:action name="getMenus" namespace="/privilege" executeResult="true"/>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <small>删除商品</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="#">Tables</a></li>
                <li class="active">Data tables</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">

            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box box-danger">
                            <div class="box-body">
                                <form action="<%=basePath%>/common/ajaxDeleteGoods.action" class="form-inline" name="searchForm">
                                    <input type="text" name="recid" class="input-small" id="inpu" hidden>

                                    <button type="submit" class="btn" hidden>保存</button>
                                </form>
                            </div>
                            <!-- /.box-body -->
                        </div><!-- /.box -->
                    </div><!-- /.box -->
                </div>
            </div>
        </section><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->

<script>
    var url = window.location.href;
    var index=url.indexOf(("?"));
    var subStr=url.substring(index+1);
    var arrayTemp=new Array();
    arrayTemp=subStr.split('&');



    var recArray=new Array();
    recArray=arrayTemp[0].split('=');
    if (recArray[0] ==="rId") {
        document.getElementById("inpu").value = recArray[1];
    }
</script>
</body>
</html>
